﻿using Frame.Core.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Frame.Core.IServices.Admin
{
    public interface IMenuService : IBaseService<Menus>
    {
        /// <summary>
        /// 获取菜单树
        /// </summary>
        /// <returns></returns>
        Task<List<Menus>> GetMenusAsync();

        /// <summary>
        /// 获取子菜单数
        /// </summary>
        /// <param name="parentID"></param>
        /// <returns></returns>
        Task<long> GetMenuParentIDCountById(int parentID);

        /// <summary>
        /// 获取权限引用的菜单数
        /// </summary>
        /// <param name="MenusId"></param>
        /// <returns></returns>
        Task<long> GetPowerMenusIdCountById(int MenusId);
    }
}
